package org.example.springoauth2.securitycommon.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;

/**
 * @author hzq
 * @date 2021/9/11 15:36
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class JdbcUser implements Serializable {
    /*id*/
    private Integer id;
    /*昵称*/
    private String nickname;
    /*租户id*/
    private Integer tenantId;
    /*全局id*/
    private String unionId;
    /*用户类型*/
    private String userType;
    /*性别*/
    private String gender;
    /*认证类型*/
    private JdbcUserAuth jdbcUserAuth;
    /*权限列表*/
    private Collection<? extends GrantedAuthority> authorities;
}
